characterstik root method to solve reccurence relation